package com.happy.xiao.common.rabbitmq.bean;

import java.io.Serializable;

/**
 * @author victor
 * @desc rabbit 死信消息载体
 */
public class DLXMessage implements Serializable {

    private static final long serialVersionUID = 9956432152000L;
    public static final int TYPE_SYSTEM_LOG = 1;
    public static final int TYPE_ORDER = 2;



    // 延时队列处理信息类型
    private int type;

    // 延时队列内容
    private String contentJson;

    public DLXMessage() {
    }

    public DLXMessage(int type, String contentJson) {
        this.type = type;
        this.contentJson = contentJson;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


    public String getContentJson() {
        return contentJson;
    }

    public void setContentJson(String contentJson) {
        this.contentJson = contentJson;
    }

    @Override
    public String toString() {
        return "DLXMessage{" +
                "type=" + type +
                ", contentJson='" + contentJson + '\'' +
                '}';
    }
}
